const productModel = require("../../models/productModel")

const productService = {
    getList: async ({ _id }) => {
        console.log(global.userId)
        return _id ? productModel.find({ _id }) : productModel.find().sort({ editTime: -1 })
    }
}

module.exports = productService